all:test01 test02 test03 test04 test_producer test_consumer

test01:test01.c MobsBuf.c
	gcc -g -o $@ $^ -Wall -Wno-unused-variable -lpthread

test02:test02.c MobsBuf.c
	gcc -g -o $@ $^ -Wall -Wno-unused-variable -lpthread

test03:test03_2p2c.c MobsBuf.c
	gcc -g -o $@ $^ -Wall -Wno-unused-variable -lpthread

test04:test04_1p2c.c MobsBuf.c
	gcc -g -o $@ $^ -Wall -Wno-unused-variable -lpthread

test_producer:test_producer.c MobsBuf.c
	gcc -g -o $@ $^ -Wall -Wno-unused-variable -lpthread

test_consumer:test_consumer.c MobsBuf.c
	gcc -g -o $@ $^ -Wall -Wno-unused-variable -lpthread

clean:
	rm test01 test02 test03 test04 test_producer test_consumer
